package com.dao;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface SysRoleMenuDao {
    @Delete("delete from sys_role_menus where menu_id = #{menuId}")
    Integer deleteObjectByMenuId(Integer menuId);

    @Delete(" delete from sys_role_menus where role_id=#{roleId}")
    Integer deleteObjectsByRoleId(Integer roleId);


    Integer insertObjects(Integer roleId,Integer[] menuIds);



}
